package com.gxa.modules.mapper.operationsmapper;

import com.gxa.modules.pojo.Client;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ClientMapper {

    List<Client> selectAllClientForPage(@Param("page")  int page, @Param("size")int size);

    int selectAllClientForPagesum(@Param("page")  int page, @Param("size")int size);

    List<Client> selectAllClient(@Param("page") int page, @Param("size") int size,
                                           @Param("clientName") String clientName,
                                           @Param("intentionLevel")String intentionLevel,
                                           @Param("clientLevel") String clientLevel,
                                            @Param("followUpStatus") String followUpStatus  );

    int selectAllClientsum(String clientName,String intentionLevel, String clientLevel, String followUpStatus);

    int insertClient(Client client);

    int deleteClientById(String id);
}
